<?php // Script 12.2 - mysql_connect.php #2
/* This script connects to the MySQL server. */

// Attempt to connect to MySQL and print out messages:
require('mysqlsettings.php');

	if ($dbc = mysql_connect($server, $username, $password)){
			echo '<p style="color: green;">Succesfully connected to MySQL!</p>';

			} else {
				echo '<p style="color: red;">Could not connect to MySQL!</p>';
			}	
?>
